SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[UserInfoInsert]
	@Id INT OUTPUT,
	@FirstName VARBINARY(MAX),
	@LastName VARBINARY(MAX),
	@Login VARBINARY(MAX),
	@Password VARBINARY(MAX),
	@Admin BIT,
	@Active BIT
AS
BEGIN
	
	INSERT INTO UserInfo
		(FirstName, LastName, Login, Password, DateCreated, Admin, Active, Visible, Deleted)
	VALUES 
		(@FirstName, @LastName, @Login, @Password,  GETDATE(), @Admin, @Active, 1, 0);
	
	SET @Id = SCOPE_IDENTITY();
	
END
GO
